<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/include/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><%=system_name%> - 供应商管理</title>
	<%@include file="/WEB-INF/jsp/include/meta.jsp"%>
	
	<link href="<%=basePath%>css/public.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>css/index.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>css/common.css" rel="stylesheet" type="text/css" />
	<script src="<%=basePath%>js/common.js" type="text/javascript"></script>
	<script type="text/javascript" src="fram/engine.js" ></script>
	<script type="text/javascript" src="fram/util.js" ></script>
	<script type="text/javascript" src="fram/interface/supplierService.js"></script>

	<script type="text/javascript">
	function beforeSubmit(){			
		var companyName=$("companyName").value;
		if(""==companyName){alert("公司名称不能为空!");return false;}
		//if(productNo.length>100){alert("货号长度不能超过100个字");return false;}
		//if($N("unit")[0].value.length>50){alert("计量单位不能操作50个字");return false;}
		//if($N("details")[0].value.length>300){alert("船方自购物料不能操作300个字");return false;}
		//if($N("remark")[0].value.length>300){alert("备注不能操作300个字");return false;}
		
		//window.parent.loading(true);
			
		return true;
	}
		
	</script>
</head>

<body oncontextmenu='return false'>

<form:form action="" method="post" name="myform" enctype="multipart/form-data" onsubmit="return beforeSubmit();">
<table class="tabView" style="margin-top:5px">
	<tr><th width="100">公司名称：</th><td><input type="text" name="companyName" id="companyName" size="50" class="input" value="${command.companyName}" maxlength="200"/>
			<input type="hidden" name="productId0" id="product_id" value="${command.id}" /></td>
			<th width="100">联系人：</th><td><input type="text" name="contact" id="contact" size="30" class="input" value="${command.contact}" maxlength="20"/></td></tr>
		<tr><th>地址：</th><td><input type="text" name="address" id="address" size="50" class="input" value="${command.address}" maxlength="100"/></td>
			<th>电话：</th><td><input type="text" name="tel" id="tel" size="30" class="input" value="${command.tel}" maxlength="30"/></td>
		<tr>
			<th>手机：</th><td><input type="text" name="mobile" id="mobile" size="30" class="input" value="${command.mobile}" maxlength="30"/></td>
			<th>邮箱：</th><td><input type="text" name="email" id="email" size="30" class="input" value="${command.email}" maxlength="50"/></td>
		</tr>
		<tr><th>网址：</th><td><input type="text" name="website" id="website" size="50" class="input" value="${command.website}" maxlength="200"/></td>
			<th>传真：</th><td><input type="text" name="fax" id="fax" size="30" class="input" value="${command.fax}" maxlength="30"/></td>
		</tr>
		<tr><th>QQ：</th><td><input type="text" name="qq" id="qq" size="50" class="input" value="${command.qq}" maxlength="50"/></td>
			<th></th><td></td>
		</tr>
		<tr><th>公司介绍：</th><td colspan="3"><textarea name="detail" id="detail" rows="3" class="input" cols="100" maxlength='200'>${command.detail}</textarea> </td></tr>
		<tr><th>备注：</th><td colspan="3"><textarea name="remark" id="remark" rows="3" class="input" cols="100" maxlength='200'>${command.remark}</textarea> </td></tr>
		<tr><td colspan="2" style="text-align:right;height:"><input type="submit" value=" 提 交 " class="btn1" /></td>
			<td colspan="2" style="text-align:left;height:"><input type="reset" value=" 重置 " class="btn1" value="reset"/></td>
		</tr>
		
</table>
</form:form>
<script>
$(limit_textarea_input)
</script>
</body>
</html>
